package cn.kgc.ucenter.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author qf
 * @since 2021-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Users对象", description="用户")
public class Users implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "账号（手机号）")
    private String account;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "盐")
    private String salt;

    @ApiModelProperty(value = "昵称")
    @TableField("userName")
    private String userName;

    @ApiModelProperty(value = "性别（0:女,1:男,2:保密）")
    private Integer sex;

    @ApiModelProperty(value = "是否实名认证（0:否,1:是）")
    @TableField("isAuthentication")
    private Integer isAuthentication;

    @ApiModelProperty(value = "真是姓名")
    private String name;

    @ApiModelProperty(value = "身份证号")
    @TableField("cardNo")
    private String cardNo;

    @ApiModelProperty(value = "头像")
    @TableField("faceUrl")
    private String faceUrl;

    @ApiModelProperty(value = "微信openId")
    @TableField("openId")
    private String openId;

    @ApiModelProperty(value = "微信绑定状态（0:未绑定,1:已绑定,2:已解绑）")
    @TableField("bindStatus")
    private Integer bindStatus;

    @ApiModelProperty(value = "微信绑定时间")
    @TableField("bindTime")
    private Date bindTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updatedUserId")
    private Long updatedUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "creatdTime", fill = FieldFill.INSERT)
    private Date creatdTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updatedTime", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableField("isDelete")
    private Integer isDelete;


}
